package com.library.mapper;

import com.library.bean.ReaderCard;
import com.library.bean.ReaderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.Map;


public interface ReaderCardMapper {

    public int getIdMatchCount(@Param("reader_id") final long reader_id, @Param("password")final String password);

    public ReaderCard findReaderByReaderId(@Param("reader_id")final long reader_id);

    public int resetPassword(@Param("reader_id")final long reader_id, @Param("newPassword")final String newPassword);

    public int addReaderCard(@Param("readerInfo")final ReaderInfo readerInfo,@Param("password") final String password) ;

    public String getPassword(@Param("reader_id")final long reader_id);
    public int deleteReaderCard(@Param("reader_id")final long reader_id);
}
